﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Widget.Lib;

namespace Widget
{
    public partial class About : System.Web.UI.Page
    {
        WebEncrypter WebEncryptionHelper = new WebEncrypter();
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
         TextBox2.Text =   WebEncryptionHelper.Encrypt(TextBox1.Text);
        }

        protected void Button2_Click(object sender, EventArgs e)
        {
            TextBox3.Text = WebEncryptionHelper.Decrypt(TextBox2.Text);
        }
    }
}
